//
//  NSDataAdditions.h
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSData (Tint)

/*
 * Creating
 */
- (NSString *)newASCIIEncodingString;
- (NSString *)newUTF8EncodingString;
- (NSString *)newStringUsingEncoding:(NSStringEncoding)encoding;

/*
 * Hash
 */
- (NSString *)newMD5HashString;
- (NSString *)newSHA1HashString;

/*
 * Base64
 */
+ (NSData *)newDataByDecodeBase64String:(NSString *)string;
- (NSString *)newBase64EncodedString;

@end

